<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@include file="/white/common/taglibs.jsp"%>
<%@include file="/white/common/common.jsp"%>

<html>
	<head>
		<script type="text/javascript">
	function toProdClassSel() {
		var url = ""

		url = "prodGroupAction!toProdClassSel.action";

		openWindow(url, 850, 500);
	}

	function toProdClassSelTwo() {
		var url = ""

		url = "prodGroupAction!toProdClassSelTwo.action";

		openWindow(url, 850, 500);
	}
	function validateForm(){
		if (confirm("您确定要修改吗？")) {
			return true;
		  }else{
			  return false;
		  }

		
	}
	
</script>
	</head>

	<body>

		<div id="div_title">
			<h3>
				离线产品品牌批量修改
			</h3>
		</div>


		<!-- Data Form -->
		<%@include file="/white/common/message.jsp"%>
		<s:form method="post"
			action="prodGroupAction-%{prodGroup.id}!quantityUpdate"
			theme="simple">
			<s:token />
			<table cellpadding="0" cellspacing="0" class="t_form">
				<tr  style="display:none">
					<td width="15%">
						一级分类编号:
					</td>
					<td>
						<s:textfield id="prodClassCode1" name="prodGroup.prodClassCode1"
							maxlength="64" readonly="true" />
						<span class="red_star">*</span> &nbsp;&nbsp;一级分类名称:
						<s:textfield id="prodClassName1" name="prodGroup.prodClassName1"
							maxlength="64" readonly="true" />
						<s:submit value=".." onclick="toProdClassSel();return false;"
							cssClass="input_button" />
					</td>
				</tr>
				<tr style="display:none">
					<td width="15%">
						二级分类编号:
					</td>
					<td>
						<s:textfield id="prodClassCode2" name="prodGroup.prodClassCode2"
							maxlength="64" readonly="true" />
						<span class="red_star">*</span> &nbsp;&nbsp;二级分类名称:
						<s:textfield id="prodClassName2" name="prodGroup.prodClassName2"
							maxlength="64" readonly="true" />
						<!--<s:submit value=".." onclick="toProdClassSelTwo();return false;"
							cssClass="input_button" />-->
					</td>
				</tr>
				<tr>
					<td width="15%">
						品牌编号:
					</td>
					<td>
					
						<s:textfield name="prodGroup.groupId" maxlength="64" readonly="true" disabled="disabled"  />
					</td>
				</tr>
				<tr>
					<td width="15%">
						品牌名称1:
					</td>
					<td>
					<input type="checkbox" name="selectedUpdate" value="1" id="selectedUpdate1" />
						<s:textfield name="prodGroup.name1" maxlength="64" />
						<span class="red_star">*</span>
					</td>
				</tr>
				<tr>
					<td width="15%">
						品牌名称2:
					</td>
					<td>
					<input type="checkbox" name="selectedUpdate" value="2" id="selectedUpdate2" />
						<s:textfield name="prodGroup.name2" maxlength="64" />
					</td>
				</tr>
				<tr>
					<td width="15%">
						分列名1:
					</td>
					<td>
					<input type="checkbox" name="selectedUpdate" value="3" id="selectedUpdate3" />
						<s:textfield name="prodGroup.subname1" maxlength="64" />
					</td>
				</tr>
				<tr>
					<td width="15%">
						电话:
					</td>
					<td>
					<input type="checkbox" name="selectedUpdate" value="4" id="selectedUpdate4" />
						<s:textfield name="prodGroup.tel" maxlength="64" />
						<span class="red_star">*</span>
					</td>
				</tr>
				<tr>
					<td width="15%">
						地区代码:
					</td>
					<td>
					<input type="checkbox" name="selectedUpdate" value="5" id="selectedUpdate5" />
						<s:textfield name="prodGroup.regionCode" maxlength="64" />
						<span class="red_star">*</span>
					</td>
				</tr>
				<tr style="display:none">
					<td width="15%">
						城市代码:
					</td>
					<td>
						<s:textfield name="prodGroup.cityCode" maxlength="64" />
						<span class="red_star">*</span>
					</td>
				</tr>
				<tr style="display:none">
					<td width="15%">
						城市名称:
					</td>
					<td>
						<s:textfield name="prodGroup.cityName" maxlength="64" />
					</td>
				</tr>
				<tr style="display:none">
					<td width="15%">
						区域代码:
					</td>
					<td>
						<s:textfield name="prodGroup.destrictCode" maxlength="64" />
						<span class="red_star">*</span>
					</td>
				</tr>
				<tr style="display:none">
					<td width="15%">
						区域名称:
					</td>
					<td>
						<s:textfield name="prodGroup.destrictName" maxlength="64" />
					</td>
				</tr>
				<tr>
					<td width="15%">
						地址:
					</td>
					<td>
					<input type="checkbox" name="selectedUpdate" value="6" id="selectedUpdate6" />
						<s:textfield name="prodGroup.addr" maxlength="64" />
					</td>
				</tr>
				<tr>
					<td width="15%">
						邮编:
					</td>
					<td>
					<input type="checkbox" name="selectedUpdate" value="7" id="selectedUpdate7" />
						<s:textfield name="prodGroup.zip" maxlength="64" />
					</td>
				</tr>
				<tr>
					<td width="15%">
						Url:
					</td>
					<td>
					<input type="checkbox" name="selectedUpdate" value="8" id="selectedUpdate8" />
						<s:textfield name="prodGroup.url" maxlength="64" />
					</td>
				</tr>
				<tr>
					<td width="15%">
						微博:
					</td>
					<td>
					<input type="checkbox" name="selectedUpdate" value="9" id="selectedUpdate9" />
						<s:textfield name="prodGroup.weibo" maxlength="64" />
					</td>
				</tr>				
				<tr>
					<td width="15%">
						微博名称:
					</td>
					<td>
					<input type="checkbox" name="selectedUpdate" value="10" id="selectedUpdate10" />
						<s:textfield name="prodGroup.weiboName" maxlength="64" />
					</td>
				</tr>
				<tr>
					<td width="15%">
						微信:
					</td>
					<td>
					<input type="checkbox" name="selectedUpdate" value="11" id="selectedUpdate11" />
						<s:textfield name="prodGroup.weixin" maxlength="64" />
					</td>
				</tr>
				<tr>
					<td width="15%">
						易信:
					</td>
					<td>
					<input type="checkbox" name="selectedUpdate" value="12" id="selectedUpdate12" />
						<s:textfield name="prodGroup.yixin" maxlength="64" />
					</td>
				</tr>
				<tr style="display:none">
					<td width="15%">
						Logo:
					</td>
					<td>
						<s:textfield name="prodGroup.logo" maxlength="64" />
					</td>
				</tr>
			</table>

			<div id="div_button">

				<s:submit key="修改"
					action="prodGroupAction-%{prodGroup.id}!quantityUpdate"
					onclick="if(validateForm()){return true;}else{return false;}"
					cssClass="input_button" />

<%-- 				<s:submit key="返回"
					onclick="form.action='prodGroupAction!queryByPage.action';return true;"
					cssClass="input_button" /> --%>
					<input type="button" value="返回"
					onclick="window.close();"
					class="input_button" />
			</div>

			<s:hidden name="searchString" />

		</s:form>

		<!--Data Form End -->

	</body>

</html>